package com.tong.hao.ac.api.feign.test;


import com.tong.hao.ac.api.feign.hystrix.TestFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * feign调用接口
 *
 * @author 友野浩二
 */
@FeignClient(name = "tong-online-ac", path = "/tong-ac", fallbackFactory = TestFallbackFactory.class)
public interface ITestFeign {

    /**
     * @return java.lang.String
     * @Author 友野浩二
     * @Description // 哈哈
     * @Date 2020/5/5 1:18
     * @Param []
     */
    @RequestMapping(value = "/test/hehe", method = RequestMethod.POST)
    String haha(@RequestParam("data") String data);

}
